import { Router } from 'express'
import * as Manage from '../controlers/manage.js'
import { vertifyToken } from '../utils/middleware.js'

const manageRouter = Router()

/**获取用户列表 */
manageRouter.get('/user/list',vertifyToken,Manage.getUserList)
/**获取用户角色列表 */
manageRouter.get('/user/role',vertifyToken,Manage.getUserRoleList)
/**封禁用户 */
manageRouter.put('/user/ban',vertifyToken,Manage.increaseUserBan)
/**解禁用户 */
manageRouter.put('/user/release',vertifyToken,Manage.releaseUserBan)

export default manageRouter